package com.kll.carolinehmibiz.presentation.listener


interface AddressDetailProtocol {

    interface IView {
        // 获取地区成功
        fun getRegionSuccessed()
        // 获取地区失败
        fun getRegionFailed(code: Int, message: String)
        // 添加地址成功
        fun addAddressSuccessed()
        // 添加地址失败
        fun addAddressFailed(code: Int, message: String)
        // 编辑地址成功
        fun editAddressSuccessed()
        // 编辑地址失败
        fun editAddressFailed(code: Int, message: String)
        // 删除地址成功
        fun delAddressSuccessed()
        // 删除地址失败
        fun delAddressFailed(code: Int, message: String)
    }

    interface IPresenter {
        // 获取地区
        fun getRegion(regionId: Int)
        // 添加地址
        fun addAddress(consignee: String, regionList: ArrayList<Int>, address: String, mobile: String, isDefault: Int)
        // 编辑地址
        fun editAddress(userAddressId: Int, consignee: String, regionList: ArrayList<Int>, region: String, address: String,
                        mobile: String, isDefault: Int)
        // 删除地址
        fun delAddress(userAddressIds: IntArray)
    }

}